<?php
class FaqModule extends fvModule {

	function __construct () {
	    $moduleName = strtolower(substr(__CLASS__, 0, -6));
	    parent::__construct(fvSite::$fvConfig->get("modules.{$moduleName}.smarty.template"), 
	                        fvSite::$fvConfig->get("modules.{$moduleName}.smarty.compile"), 
	                        fvSite::$Layoult);
	}
	
	function showIndex($params) {
	    $pager = new fvPager(FaqManager::getInstance());
        $this->__assign('Faqs', $pager->paginate("answer is not NULL and answer <> '' and lang='".fvSite::$fvSession->get("lang")."'", "create_date DESC"));
        return $this->__display("faq_index.tpl");
	}
	
}
?>